/*
 * Copyright (c) Huawei Technologies Co., Ltd. 2022-2022. All rights reserved.
 * Description: package about rtos_pramdisk_fs_dax
 * Author: wangzirui
 * Create: 2022-07-13
 */
#ifndef RTOS_PRAMDISK_FS_DAX_H
#define RTOS_PRAMDISK_FS_DAX_H
#include <linux/string.h>
#define IS_PRAMDISK(bdev) ((bdev) && (bdev)->bd_disk && strstr((bdev)->bd_disk->disk_name, "pramdisk"))

void dax_pramdisk_should_unmap(void *addr_pmfs_p, const struct block_device *bdev_p);
void ptep_get_and_clear_in_dax(struct vm_fault *vmf);
vm_fault_t rtos_insert_mixed_with_pgprot(const struct block_device *bdev,
	struct vm_area_struct *vma, unsigned long vaddr, pfn_t pfn, bool mkwrite);
#endif
